#!/usr/bin/python

import cgi
import logging

from google.appengine.api import users
from google.appengine.ext import db
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app

from hips.handlers import commands
from hips.handlers import readers
from hips.handlers import writers


def AllHandlers():
  return [('/ContextRoot', commands.ContextRootHandler),
          ('/AssignDoctors', commands.AssignDoctorsHandler),

          ('/ListInstitution', readers.InstitutionListHandler),
          ('/ReadInstitution', readers.InstitutionDetailsHandler),
          ('/WriteInstitution', writers.DefaultModelWriteHandler),
          ('/CreateInstitution', writers.DefaultModelWriteHandler),

          ('/ListDoctor', readers.DoctorListHandler),
          ('/WriteDoctor', writers.DefaultModelWriteHandler),
          ('/CreateDoctor', writers.DefaultModelWriteHandler),

          ('/ListSchedule', readers.ScheduleListHandler),
          ('/ReadSchedule', readers.ScheduleDetailsHandler),
          ('/CreateSchedule', writers.ScheduleCreationHandler),

          ('/ListDoctorConstraint', readers.DoctorConstraintListHandler),
          ('/WriteDoctorConstraint', writers.DefaultModelWriteHandler),

          ('/ReadScheduleSolution', readers.ScheduleSolutionDetailsHandler),
          ('/ListScheduleSolution', readers.ScheduleSolutionListHandler),

          ('/WriteScheduleSolutionBlock', writers.DefaultModelWriteHandler),
         ]